import re

def validate_email(email):
    pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
    if re.fullmatch(pattern, email):
        return True
    else:
        return False


def classify_email(email):
    if '@' not in email:
        return "无效的电子邮件地址"
    domain = email.split('@')[1].lower()
    if '.edu' in domain or '.ac' in domain:
        return "教育机构"
    elif any(ext in domain for ext in ['.com', '.org', '.net']):
        return "公司邮箱"
    else:
        return "个人邮箱"